<extend name="./Application/Admin/View/Index/index.html"/>

<block name="box">
    <div class="view-product">
        <div class="info-center">
            <div class="manage-head">
                <h6 class="padding-left manage-head-con">修改管理员</h6>
            </div>

            <div class="layui-container" style="margin-top: 20px">
                <div class="layui-row">

                    <div class="layui-col-md5 layui-col-md-offset1">
                        <form class="layui-form" action="{{:U('User/admin_editdo')}}" method="post">
                            <div class="layui-form-item">
                                <input type="hidden" name="id" value="{{$res['id']}}">
                                <label class="layui-form-label">管理员</label>
                                <div class="layui-input-inline">
                                    <input type="text" name="name" required  lay-verify="required"  autocomplete="off" class="layui-input"value="{{$res['name']}}">
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label">密码</label>
                                <div class="layui-input-inline">
                                    <input type="password" name="pwd" required lay-verify="required" autocomplete="off" class="layui-input"value="{{$res['pwd']}}">
                                </div>
                                <!--<div class="layui-form-mid layui-word-aux">辅助文字</div>-->
                            </div>

                            <div class="layui-form-item">
                                <label class="layui-form-label">电话</label>
                                <div class="layui-input-inline">
                                    <input type="text" name="tel" required  lay-verify="required"  autocomplete="off" class="layui-input"value="{{$res['tel']}}">
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label">邮箱</label>
                                <div class="layui-input-inline">
                                    <input type="text" name="email" required  lay-verify="required"  autocomplete="off" class="layui-input" value="{{$res['email']}}">
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label">级别</label>
                                <div class="layui-input-block">
                                    <input type="radio" name="type" value="1" title="普通管理员"checked>
                                    <input type="radio" name="type" value="0" title="超级管理员" {{$tn}}>
                                </div>
                            </div>


                            <div class="layui-form-item">
                                <div class="layui-input-block">
                                    <button class="layui-btn" lay-submit >立即提交</button>
                                    <button type="reset" class="layui-btn layui-btn-primary">重置</button>
                                </div>
                            </div>
                        </form>

                    </div>
                </div>
            </div>
            <script>
                //Demo
                layui.use('form', function(){
                    var form = layui.form;

                    //监听提交
                    form.on('submit(formDemo)', function(data){
                        layer.msg(JSON.stringify(data.field));
                        return false;
                    });
                });
            </script>

        </div>
        <div class="show-page padding-big-right hidden">
            <div class="page">
            </div>
        </div>
    </div>

</block>
